package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.web;

import com.iwhalecloud.citybrain.flow.platform.manager.common.ResponseResult;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.task.SupplySignTaskVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.repository.FlowSupplyNodeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 补发Controller
 *
 * @author lzb
 * @date 2021-11-29
 */
@RestController
@RequestMapping("/supply")
@Api
public class FlowSupplyNodeController {

    @Autowired
    private FlowSupplyNodeService flowSupplyNodeService;

    @PostMapping("/supplySignTask")
    public ResponseResult getNoticeChannelType(@RequestBody SupplySignTaskVo supplySignTaskVo) {
        //流程实例id
        //taskid                        从历史查 补签权限
        // 补签人员
        return flowSupplyNodeService.supplySignTask(supplySignTaskVo);
    }
}
